 const ErrorInit=(list,ResultList)=>{
    list.forEach(item=>{
        ResultList.push({item:false})
    })
}
 const ErrorCall = (item,ResultList) => {
    for(let i=0;i<ResultList.length;i++){
        if(ResultList[i] === item){
            ResultList[i]={item:false}
        }
    }
}
 const SuccessCall = (item,ResultList) =>{
    for(let i=0;i<ResultList.length;i++){
        if(ResultList[i] === item){
            ResultList[i]={item:false}
        }
    }
}

const VailDataForm = {
    ErrorInit,
    ErrorCall,
    SuccessCall
}

export default VailDataForm